package com.ljb.utilslibary_master;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.ljb.httplibrary.HttpUtils;

public class MainActivity extends BaseActivity implements View.OnClickListener {

    private LinearLayout container;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        container = (LinearLayout) findViewById(R.id.ll_container);
        initUI(container);
    }

    private void initUI(LinearLayout container) {
        int childCount = container.getChildCount();
        for (int i = 0; i < childCount; i++) {
            container.getChildAt(i).setOnClickListener(this);
        }
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.bt_SP://SP工具演示
                SPActivity.actionStart(this);
                break;
            case R.id.bt_ThreadUtils://线程切换工具
                test();
                break;
        }
    }

    private void test() {
    }
}



